System Trigger

System Watcher

See Also

Introduction to Triggers, Available Triggers

Description

Triggers the task when a system change occurs. These system changes encompass miscellaneous events on the system.

Practical Usage

Primarily for compatibility with AutoMate 4.

Return Value

When this trigger is activated - it automatically passes the AMTrigger object to the task.

The following properties are populated:

AMTrigger.Trigger
String
The name of the trigger that started the task.  For this trigger, the value is always "AMSYSTEMCHANGETRIGGER".
AMTrigger.Resolution
String
The depth and resolution that the display has just been switched to.  The variable value is in the format "d,x,y", where d is the depth, x is the total width of the screen (in pixels) and y is the total height of the screen (in pixels)
NOTE: This field is present only if the trigger is set to fire on screen resolution change
AMTrigger.Device
String
The name of the device that has changed.
NOTE: This field is present only if the trigger is set to fire on device change
AMTrigger.Action
String
The type of change that has just occured to the printer spooler.  This variable value is either "ADDED" (a print job was added to the queue) or "REMOVE" (a print job was removed from the queue, either because the print job completed, or because it was removed by the user)
NOTE: This field is present only if the trigger is set to fire on print spooler change